package com.wwt.server.vo;

/**
 * 错误代码枚举类
 */
public enum ErrorCode {
    TOKEN_AUTH_FAILED(501,"Token认证失败！"),
    USERNAME_OR_PASSWORD_ERROR(502,"账号或密码错误!"),
    ACCOUNT_DENY(503,"账号被禁用，请联系管理员！"),
    AUTHENTICATION_ERROR(401,"认证异常或权限不足！"),
    NO_AUTHORITY(403,"权限不足，请联系管理员!"),
    KAPTCHA_ERROR(504,"验证码错误，请重新输入!");

    private Integer code;
    private String message;

    ErrorCode( Integer code,String message) {
        this.message = message;
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }
}
